package com.fingard.dsp.bank.reqrespobj.frgcurrsingle;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.frgcurrsingle.detail.CJQryFrgCurrSingleDetail;
import com.fingard.xml.XmlTextReader;

/**
 * 海外--单笔付款状态数据查询
 */
public class ReqQryCJFrgCurrSingle extends RequestBase {

    public XmlTextReader xmlReader;

    public CJQryFrgCurrSingleDetail singleDetail;

    public ReqQryCJFrgCurrSingle(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception{

        reqHeader = p_header;
        xmlReader=p_xmlReader;

        if(p_xmlReader.read(PATH_Detail)){//"/ATSYH/TransReq/TransParam/DetailRecord"
            singleDetail=new CJQryFrgCurrSingleDetail(p_xmlReader.readedXElement);
        }
        else{
            throw new Exception("不存在节点："+PATH_Detail);
        }
    }
}
